﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProyectoVentaEditForm.aspx.cs" 
Inherits="UILGestion.Admin.Proyecto.ProyectoVentaEditForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <title>Registro de Proyecto Venta</title>
     <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>
   
   
</head>
<body>
    <form id="form1" runat="server">
    <input id="type" type="hidden" runat="server" />
    <input id="internalID" type="hidden" runat="server" />
    <input id="paginaAnt" type="hidden" runat="server" />
    
     <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
     <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="EDITAR PROYECTO VENTA" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>

          <asp:Panel ID="PanelButtom" runat="server"     class="ms-crm-Form-Body" >                 
   <table >
<tr>

<td>
    <asp:Button ID="saveBTN" runat="server" Text="Guardar"  
       OnClick="button"   CssClass="ms-crm-List-Header"    /></td>
<td>
    <asp:Button ID="cancelarBTN" runat="server" Text="Cancelar"  
       OnClick="button" CssClass="ms-crm-List-Header"  /></td>
        <td></td>
        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   OnClick="button" CssClass="ms-crm-List-Header" 
          /></td> 
 
</tr>
</table>
</asp:Panel>

<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >



                
                <table>
                   
                    <tr>
                        <td rowspan="11" valign="top"  Width="480px">
               
                                     <table>
                        <tr>
                        <td align="right" width="100px">Empresa:</td>
                        <td>
                            <asp:DropDownList ID="empresaDDL" runat="server" Width="300px">
                            </asp:DropDownList>
                            </td>
                        
                        </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Codigo:</td>
                                             <td>
                                                 <asp:TextBox ID="codigoTXT" runat="server" Width="200px"></asp:TextBox>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Descripcion:
                                             </td>
                                             <td>
                                                 <asp:TextBox ID="descripcionTXT" runat="server" Width="350px"></asp:TextBox>
                                             </td>
                                         </tr>
                                         <tr>
                                             <td align="right" width="100px">
                                                 Tipo Proyecto:</td>
                                             <td>
                                                 <asp:DropDownList ID="tipoActividadDDL" runat="server" Width="210px">
                                                 </asp:DropDownList>
                                             </td>
                                         </tr>
                        <tr>
                        <td align="right" width="100px">Numero Partida: </td>
                        <td><asp:TextBox ID="numPartidaTXT" runat="server" Width="200px"></asp:TextBox></td>
                        
                        </tr>
                            <tr>
                                <td align="right" width="100px">
                                    Numero Tomo:</td>
                                <td>
                                    <asp:TextBox ID="numTomoTXT" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="100px" class="style1">
                                    Numero Ficha:</td>
                                <td class="style1">
                                    <asp:TextBox ID="numFichaTXT" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" width="100px">
                                    Numero Foja:</td>
                                <td>
                                    <asp:TextBox ID="numFojaTXT" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" width="100px">
                                    Sede:</td>
                                <td>
                                    <asp:TextBox ID="sedeTXT" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                                 <tr>
                                <td align="right" width="100px">
                                    Area:</td>
                                <td>
                                    <lib:Input ID="areTXT" runat="server" Width="200px" DataType="Double" ></lib:Input>
                                    M2</td>
                            </tr>
                           
                                         <tr>
                                             <td align="right" width="100px">
                                                 Imagen:</td>
                                             <td>
                                                 <table width="100%">
                                                     <tr>
                                                         <td>
                                                             <asp:FileUpload ID="archivoFileLoad" runat="server"  />
                                                         </td>
                                                         
                                                         <td>ID:<asp:TextBox ID="idimagenTXT" runat="server" Enabled="false" Width="20px"></asp:TextBox></td>
                                                         <td width="30px">
                                                             <asp:Button ID="addImagenBTN" runat="server" 
                                                                 CssClass="ms-crm-List-Header" 
                                                                 onclick="button" 
                                                                 OnClientClick="return confirm('Usted quiere subir el Archivo?')" 
                                                                 Text="Cargar Archivo" width="85px" />
                                                         </td>
                                                     </tr>
                                                 </table>
                                             </td>
                                         </tr>
                           
                        </table>
               
                        </td>
                    </tr>
                  
               
                    <tr>
                        <td class="style1" width="130px" align="right">
                            Correo Electronico:</td>
                        <td>
                            <asp:TextBox ID="emailTextBox" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" width="130px" align="right">
                         
                                    web:</td>
                        <td>
                            <asp:TextBox ID="webTXT" runat="server"  Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px" align="right">
                            Fecha Inicio:</td>
                        <td>
                            <asp:TextBox ID="fechaInicioTXT" runat="server" Width="200px"></asp:TextBox>
                            <asp:ImageButton ID="ImageButton1" runat="Server" 
                                  AlternateText="Click aqui para mostrar calendario" 
                                  ImageUrl="~/Images/month.gif" Width="16px" />
                                  <asp:CalendarExtender ID="CalExt1" runat="server" PopupButtonID="ImageButton1" 
                                  TargetControlID="fechaInicioTXT">
                              </asp:CalendarExtender>
                           
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px" align="right">
                            Fecha Entraga:</td>
                        <td>
                            <asp:TextBox ID="fechaFinTXT" runat="server" Width="200px"></asp:TextBox>
                            <asp:ImageButton ID="ImageButton2" runat="Server" 
                                  AlternateText="Click aqui para mostrar calendario" 
                                  ImageUrl="~/Images/month.gif" Width="16px" />
                                  <asp:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="ImageButton2" 
                                  TargetControlID="fechaFinTXT">
                              </asp:CalendarExtender>
                           
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px" align="right" valign="top">
                             Comentario:</td>
                        <td>
                            <asp:TextBox ID="comentarioTXT" runat="server" Height="70px" 
                                TextMode="MultiLine" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="PanelTotales">
                        <td class="style1" width="130px" align="right">
                            Activo:</td>
                        <td>
                            <asp:CheckBox ID="bitActivoCHK" runat="server" />
                        </td>
                    </tr>
                </table>
            
 


 
 </asp:Panel>

  <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
     <asp:TabPanel ID="DireccionTPNL" runat="server" HeaderText="Direccion">
     <ContentTemplate>

     
    <table class="ms-crm-MaxWidth">
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Direccion:</td>
                <td width="350px">
                                                 <asp:TextBox ID="direccionTXT" runat="server" 
                        Width="350px"></asp:TextBox>
                                             </td>
                <td rowspan="2" valign="top">
                    <asp:UpdatePanel ID="ubigeoUP" runat="server" UpdateMode="Conditional" >
                        <ContentTemplate>
                            <table class="ms-crm-MaxWidth">
                                <tr>
                                    <td align="right" width="100px">
                                        Departamento:</td>
                                    <td>
                                        <asp:DropDownList ID="departamentoDDL" runat="server" Width="210px"  
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" align="right" width="100px">
                                        Provincia:</td>
                                    <td class="style1">
                                        <asp:DropDownList ID="provinciaDDL" runat="server" Width="210px" 
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" width="100px">
                                        Distrito</td>
                                    <td>
                                        <asp:DropDownList ID="distritoDDL" runat="server" Width="210px" 
                                            OnSelectedIndexChanged="comboBox" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="right" width="100px">
                                        Urbanizacion</td>
                                    <td>
                                        
                                        <asp:TextBox ID="urbanizaiconTXT" runat="server" Width="200px"></asp:TextBox>
                                        
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class="ms-crm-TextAlign-TrailingEdge" width="100px">
                Referencia:</td>
                <td width="350px">
                            <asp:TextBox ID="referenciaTXT" runat="server" Height="70px" 
                                TextMode="MultiLine" Width="350px"></asp:TextBox>
                        </td>
        </tr>
    </table>

    </ContentTemplate>
     </asp:TabPanel>
    

     <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Financiero">
     <ContentTemplate>


    <table class="ms-crm-MaxWidth">
        <tr>
            <td width="100px">
                Financiamiento:</td>
            <td>
                                        <asp:DropDownList ID="tipoFinanciamientoDDL" 
                    runat="server" Width="210px" 
                                            OnSelectedIndexChanged="comboBox" 
                    AutoPostBack="True">
                                        </asp:DropDownList>
                                    </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:UpdatePanel ID="programaUPNL" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                    <asp:Panel runat="server" ID="programaPNL" >
                        <table class="ms-crm-MaxWidth">
                            <tr>
                                <td width="100px">
                                    Programa:</td>
                                <td>
                                    <asp:DropDownList ID="programaDDL" runat="server" AutoPostBack="true" 
                                        Width="210px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td width="100px">
                                    codigo:</td>
                                <td>
                                    <asp:TextBox ID="codigoFinanciamientoTXT" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    
    
    </ContentTemplate>
     </asp:TabPanel>
     </asp:TabContainer>

    </form>
    </body>
</html>
